package com.psl.action.work.sell;

import com.psl.services.work.sell.SellServices;
import org.apache.struts2.ServletActionContext;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by mioko on 2017/9/4.
 */
public class selldel {
    public String execute(){
        HttpServletRequest request= ServletActionContext.getRequest();
        int id=Integer.parseInt(request.getParameter("id"));
        SellServices sellServices=new SellServices();
        sellServices.del(id);
        sellServices.All();
        return "success";
    }
}
